<?php 
$this->title = "Restaurant anzeigen";
$this->headTitle($this->title);
?>

<h1>Restaurants</h1>

</br>
<table>
	<tr>
		<!-- <td> Restaurant-ID </td>  -->
		<td> Name </td>
		<td> Land </td>
		<td> Stadt </td>
		<td> Adresse </td>
		<td> Oeffnungszeiten </td>
		<td> Kuechenzeiten </td>
		<td> Entfernung zum Hafen </td>
	</tr>
<?php 

if(!(empty($this->entry))){
	foreach ($this->entry as $array){

?>

	<tr>
		<!-- <td><?php echo $this->escape($array['id']);?> </td> -->
		<td><?php echo $this->escape($array['name']);?> </td>
		<td><?php echo $this->escape($array['land']);?> </td>
		<td><?php echo $this->escape($array['stadt']);?> </td>
		<td><?php echo $this->escape($array['adresse']);?> </td>
		<td><?php echo $this->escape($array['open']);?> - <?php echo $this->escape($array['close']);?></td>
		<td><?php echo $this->escape($array['kuechenbeginn']);?> - <?php echo $this->escape($array['kuechenende']);?></td>
		<td><?php echo $this->escape($array['hafenweg']);?></td>
		<td><a href="/sailorbase-a/sailorbase-a/public/restaurant/show/locationid/<?php echo $this->escape($array['id']);?>"> Details </a> </td>
	<?php  ?>
<!--		<td><a href="/sailorbase-a/sailorbase-a/public/hafen/premium/locationid/<?php echo $this->escape($array['id']);?>"> Premium setzen </a> </td>
-->	<?  ?>
	<?php  ?>
		<td><a href="/sailorbase-a/sailorbase-a/public/restaurant/delete/locationid/<?php echo $this->escape($array['id']);?>"> Loeschen </a> </td>
	<?  ?>
	</tr>
	
<?php 
	}
}
?>
</table>
